import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/system',
    component: () => import('@/layouts/BaseLayout.vue'),
    meta: { title: '系统管理', icon: 'i-tdesign-setting-1' },
    children: [
      {
        path: '/system/settings/dict',
        component: () => import('@/views/system/settings/dict/SysDictListPage.vue'),
        props: true,
        meta: { title: '系统字典', icon: 'i-tdesign-view-list' },
      },
      {
        path: '/system/settings',
        component: () => import('@/views/system/settings/SysSettingsPage.vue'),
        props: true,
        meta: { title: '系统设置', icon: 'i-tdesign-view-list' },
      },
      {
        path: '/system/file',
        component: () => import('@/views/system/file/SysFileListPage.vue'),
        props: true,
        meta: { title: '文件列表', icon: 'i-tdesign-view-list' },
      },
      {
        path: '/system/account',
        component: () => import('@/views/system/account/AccountListPage.vue'),
        props: true,
        meta: { title: '账号管理', icon: 'i-tdesign-user' },
      },
      {
        path: '/system/account/log',
        component: () => import('@/views/system/account/AccountLogListPage.vue'),
        props: true,
        meta: { title: '资源列表', icon: 'i-tdesign-view-list' },
      },
      {
        path: '/system/app/role',
        component: () => import('@/views/system/app/role/AppRoleListPage.vue'),
        props: true,
        meta: { title: '应用角色', icon: 'i-tdesign-view-list' },
      },
      {
        path: '/system/app/menu',
        component: () => import('@/views/system/app/menu/AppMenuTreePage.vue'),
        props: true,
        meta: { title: '应用菜单', icon: 'i-tdesign-view-list' },
      },
    ],
  },
]
export default routes
